import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class Solution1346 {
    public boolean checkIfExist(int[] arr) {
        Arrays.sort(arr);
        Set<Integer> set=new HashSet<>();
        for (int i : arr) {
            if (i%2==0 && set.contains(i/2) || set.contains(i*2)){
                return true;
            }
            set.add(i);
        }
        return false;
    }

    public static void main(String[] args) {
        System.out.println(new Solution1346().checkIfExist(new int[]{10,2,5,3}));
    }
}
